//
//  AppExtendsMacro.h
//  JoinPeso
//
//  Created by 小琦 on 2024/11/18.
//

#ifndef AppExtendsMacro_h
#define AppExtendsMacro_h

#ifndef weakify
    #if DEBUG
        #if __has_feature(objc_arc)
        #define weakify(object) autoreleasepool{} __weak __typeof__(object) weak##_##object = object;
        #else
        #define weakify(object) autoreleasepool{} __block __typeof__(object) block##_##object = object;
        #endif
    #else
        #if __has_feature(objc_arc)
        #define weakify(object) try{} @finally{} {} __weak __typeof__(object) weak##_##object = object;
        #else
        #define weakify(object) try{} @finally{} {} __block __typeof__(object) block##_##object = object;
        #endif
    #endif
#endif

#ifndef strongify
    #if DEBUG
        #if __has_feature(objc_arc)
        #define strongify(object) autoreleasepool{} __typeof__(object) object = weak##_##object;
        #else
        #define strongify(object) autoreleasepool{} __typeof__(object) object = block##_##object;
        #endif
    #else
        #if __has_feature(objc_arc)
        #define strongify(object) try{} @finally{} __typeof__(object) object = weak##_##object;
        #else
        #define strongify(object) try{} @finally{} __typeof__(object) object = block##_##object;
        #endif
    #endif
#endif


#define kMainTextColor  [UIColor colorWithHexString:@"#D8EBFF"]

#define kBlackTextColor  [UIColor colorWithHexString:@"#0E1D31"]

#define kBlueTextColor  [UIColor colorWithHexString:@"#4C1DEE"]

#define kCardColor  [UIColor colorWithHexString:@"#F3F4F8"]

#define kOrangeColor  [UIColor colorWithHexString:@"#EB7B0F"]

#define k999999Color  [UIColor colorWithHexString:@"#999999"]




#define KXQTrackingInfo  @"KXQTrackingInfo"

#endif /* AppExtendsMacro_h */
